package lhc.eureka_client.dome.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.logging.Logger;

/**
 * @ClassName SysHelloController
 * @Description:
 * @Author: asus
 * @CreateDate: 2020-12-24 10:30
 * @UpdateUser: asus
 * @UpdateDate: 2020-12-24 10:30
 * @UpdateRemark:
 * @Version: 1.0
 */
@RestController
@RequestMapping(value = "/eureka")
public class SysHelloController {

    private static final Logger LOG = Logger.getLogger(SysHelloController.class.getName());

    @Value("${server.port}")
    String port;

    @GetMapping(value = "/SysHello")
    public String SysHello(String str){
        return "hi " + str + " ,I am from port: " + port;

    }
    @RequestMapping("/index")
    public String index (){
        return "这是Index方法";
    }
}
